using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using System.IO;

namespace SpoonCore2.Network
{
	public delegate void OnReceiveDataHandler(IPEndPoint endpoint, BinaryReader reader);

	public interface ISpoonSocket : IDisposable
	{
		void Send(IPEndPoint endpoint, byte[] data);
		int Port { get;}
		event OnReceiveDataHandler OnReceiveData;
	}
}
